#include "commandStack.h"

typedef enum{
    DATA,
    CD,
    LS,
    PUTS,
    GETS,
    REMOVE,
    PWD,
    MKDIR
}Command;

typedef struct comTrain_s{
    Command type;
    int length;
    char data[1000];
}comTrain_t;

int recvCommand(int sockfd, commandStack_t *curPathStack);
int do_command(Command curCommand, int sockfd, commandStack_t *pcommandStack, commandStack_t *curPathStack);
int trans_res(int netfd,const char res[]);

